package com.TwinBlade.PicturePassword;

import android.graphics.Matrix;
import android.view.ScaleGestureDetector;
import android.view.ScaleGestureDetector.SimpleOnScaleGestureListener;

class cu extends ScaleGestureDetector.SimpleOnScaleGestureListener
{
  private cu(TouchImageView paramTouchImageView)
  {
  }

  public boolean onScale(ScaleGestureDetector paramScaleGestureDetector)
  {
    float f1 = paramScaleGestureDetector.getScaleFactor();
    float f2 = TouchImageView.a(this.a);
    TouchImageView localTouchImageView = this.a;
    TouchImageView.a(localTouchImageView, f1 * TouchImageView.a(localTouchImageView));
    if (TouchImageView.a(this.a) > TouchImageView.b(this.a))
    {
      TouchImageView.a(this.a, TouchImageView.b(this.a));
      f1 = TouchImageView.b(this.a) / f2;
      if ((this.a.d * TouchImageView.a(this.a) > this.a.b) && (this.a.e * TouchImageView.a(this.a) > this.a.c))
        break label214;
      TouchImageView.d(this.a).postScale(f1, f1, this.a.b / 2, this.a.c / 2);
    }
    while (true)
    {
      this.a.a();
      return true;
      if (TouchImageView.a(this.a) >= TouchImageView.c(this.a))
        break;
      TouchImageView.a(this.a, TouchImageView.c(this.a));
      f1 = TouchImageView.c(this.a) / f2;
      break;
      label214: TouchImageView.d(this.a).postScale(f1, f1, paramScaleGestureDetector.getFocusX(), paramScaleGestureDetector.getFocusY());
    }
  }

  public boolean onScaleBegin(ScaleGestureDetector paramScaleGestureDetector)
  {
    this.a.a = 2;
    return true;
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.TwinBlade.PicturePassword.cu
 * JD-Core Version:    0.6.2
 */